package cn.mdx.mapper;

import cn.mdx.pojo.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminMapper {
    int deleteByPrimaryKey(Integer uid);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer uid);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    //@author 宋飞翔
    Admin login(@Param("username") String username, @Param("password") String password);

    //？？？
    List<SkillUserVO> getskillUserInfo(@Param("username") String username, @Param("name") String name);

    //查询专利资源信息
    List<Patent> getAllPatent(@Param("cid") Integer cid);

    //查询平台资源
    List<Terrace> getAllTerrace(@Param("cid") Integer cid);


    //查询团队信息
    List<Team> getAllTeam(@Param("cid") Integer cid);

    //软件著作权信息
    List<Software>  getAllSoftware(@Param("cid") Integer cid);


    //校企联合资源
    List<School> getAllSchool(@Param("cid") Integer cid);


    //查询所有需求信息
    List<Demand> getAllDemand();

    //查询所有需求方信息
    List<Needuser> getAllNeeduser();

    //获取成果分类信息achievement
    List<Achievement> getAllAchievement();

}